package sytwo;
public class Test {
    public static void main(String[] args) {
        // 1. 创建教师并开课
        Teacher t1 = new Teacher("T001", "张三", "男");
        Teacher t2 = new Teacher("T002", "王五", "女");
        Course c1 = new Course("C001", "Java应用开发技术", "主楼2501", "周四上午8:00-9:40", "T001");
        Course c2 = new Course("C002", "大学物理", "教304", "周二上午10：00-11：40", "T001");
        t1.openCourse(c1);
        t2.openCourse(c2);
        // 2. 创建学生并选课、退课
        Student s1 = new Student("S001", "李四", "女");
        s1.selectCourse(c1); //选课
        s1.dropCourse(); //退课
        s1.selectCourse(c2); // 重新选课
        // 3. 打印学生课表
        s1.printSchedule(t2);
    }
}